<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/head.jsp"%>
<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/sys/query${actionclass}.do" method="post">
		<div class="bjui-searchBar">
			<label>课程：</label>
			<input type="text" value="" name="s_name" class="form-control" size="10">
			&nbsp;
			<!--             <label>:</label> -->
			<!--             <select name="type" data-toggle="selectpicker"> -->
			<!--                 <option value="">全部</option> -->
			<!--             </select>&nbsp; -->
			<button type="submit" class="btn-default" data-icon="search">查询</button>
			&nbsp;
			<div class="pull-right">
				<div class="btn-group">
					<button type="button" class="btn-blue" data-url="${ctx}/sys/add2${actionclass}.do" data-toggle="navtab"
						data-options="{reloadWarn:''}" data-id="baseAdd" data-icon="plus" title="添加${actionname}">添加${actionname}</button>
					&nbsp;
					<button type="button" class="btn-orange" data-url="${ctx}/sys/delete${actionclass}.do" data-toggle="doajaxchecked"
						data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids" data-icon="remove" title="批量删除">批量删除</button>
					&nbsp;
				</div>
			</div>
		</div>
	</form>
</div>
<div class="bjui-pageContent tableContent">
	<table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
		<thead>
			<tr>
				<th>教师</th>
				<th>课程</th>
				<th>课时</th>
				<th>学分</th>

				<th width="100">上课班级</th>
				<th width="26">
					<input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck">
				</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${SESSION_PAGE.list}" var="item">
				<tr data-id="${item.id }">
					<td>${item.teacher.fname}</td>
					<td>${item.name}</td>
					<td>${item.keshi}</td>
					<td>${item.fen}</td>

					<td>
						<a href="${ctx}/sys/add2CourseClazz.do?uid=${item.id}" class="btn btn-blue" data-toggle="navtab"
							data-options="{reloadWarn:''}" data-id="baseAdd" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？"
							data-title="上课班级信息">
							<i class="fa fa-pencil fa-fw"></i>
						</a>
					</td>
					<td>
						<input type="checkbox" name="ids" data-toggle="icheck" value="${item.id }">
					</td>
					<td>
						<a href="${ctx}/sys/get${actionclass}.do?uid=${item.id}" class="btn btn-green" data-toggle="navtab"
							data-options="{reloadWarn:''}" data-id="baseAdd" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？"
							data-title="${actionname}信息">
							<i class="fa fa-pencil fa-fw"></i>
						</a>
						<a href="${ctx}/sys/delete${actionclass}.do?ids=${item.id}" class="btn btn-orange" data-toggle="doajax"
							data-confirm-msg="确定要删除该行信息吗？">
							<i class="fa fa-remove fa-fw"></i>
						</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<div class="bjui-pageFooter">
	<div class="pages">
		<span>&nbsp;共 ${SESSION_PAGE.totalNumber} 条</span>
	</div>
	<div class="pagination-box" data-toggle="pagination" data-total="${SESSION_PAGE.totalNumber}"
		data-page-size="${SESSION_PAGE.itemsPerPage}" data-page-current="${SESSION_PAGE.currentPageNumber}"></div>
</div>
